import { computed } from 'vue'

export const useCommon = () => {
  const topicThemBgcKey = 'topicThemBgcKey'

  const setThemBgc = (color: string) => {
    localStorage.setItem(topicThemBgcKey, color)
  }

  const bgcThem = computed(() => localStorage.getItem(topicThemBgcKey))

  return { setThemBgc, bgcThem }
}
